# -*- coding: utf-8 -*-


class PackageInfo:
    """
    定义了一个包的信息
    """

    def __init__(self, name, compile_date):
        self.name = name
        self.compile_date = compile_date
        self.project_url = ''
        self.links = {}

    def __repr__(self):
        return '<name: %s, compile_date: %s, urls: %s>' % (self.name, self.compile_date.strftime('%Y-%m-%d'), self.links)